package pattern.composite;

public class CompositeTest {
	public static void main(String[] args) {
		Folder root = new Folder("Root");
		
		Folder level1_folder_1 = new Folder("level1_folder_1");
//		Folder level1_folder_2 = new Folder("level1_folder_2");
//		File level1_file_1 = new File("level1_file_1", "AVI");
		
		root.add(level1_folder_1);
//		root.add(level1_folder_2);
//		root.add(level1_file_1);
		
		Folder level2_folder_1 = new Folder("level2_folder_1");
//		File level2_file_1 = new File("level2_file_1", "AVI");
//		File level2_file_2 = new File("level2_file_2", "RMVB");
		
		level1_folder_1.add(level2_folder_1);
//		level1_folder_1.add(level2_file_1);
//		level1_folder_2.add(level2_file_2);
		
		File level3_file_1 = new File("level3_file_1", "MKV");
		File level3_file_2 = new File("level3_file_2", "WMV");
		
		level2_folder_1.add(level3_file_1);
		level2_folder_1.add(level3_file_2);
		
		Selector selector = new Selector(root);
//		selector.print();
//		System.out.println("\n##########\n");
		selector.printAVI();
	}
}
